package com.lai.gulimall.product.vo;

import com.lai.gulimall.product.entity.SkuImagesEntity;
import com.lai.gulimall.product.entity.SkuInfoEntity;
import com.lai.gulimall.product.entity.SpuInfoDescEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SkuItemVo {

    //1、sku基本信息  pms_sku_info
    SkuInfoEntity info;
    //是否有货
    boolean hasStock = true;

    //2、sku图片信息  pms_sku_images
    List<SkuImagesEntity> images;
    //3、获取当前sku的 spu的所有销售属性组合 pms_sku_info
    List<SkuItemSaleAttrVo> saleAttr;
    //3.1先查出当前sku所对应的spu
    //3.2、根据spuId查出所有他下面的sku

    //4、获取spu介绍 pms_spu_info
    SpuInfoDescEntity desp;
    //5、获取spu的规格参数信息 pms_product_attr_value
    List<SpuItemAttrGroupVo> groupAttrs;

}
